import type { GoodsResult } from "@/types/goods"
import { http } from "@/utils/request"

//获取商品详情
export const goodsDetail = (id: string) => {
  return http<GoodsResult>({
    url: '/goods',
    method: 'GET',
    data: {
      id
    }
  })
}